package com.wasp.collector.utils;

import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.UnknownHostException;
import java.util.concurrent.TimeUnit;

import javax.net.ssl.SSLException;

import org.apache.http.HttpEntityEnclosingRequest;
import org.apache.http.HttpRequest;
import org.apache.http.client.HttpRequestRetryHandler;
import org.apache.http.client.protocol.HttpClientContext;
import org.apache.http.conn.ConnectTimeoutException;
import org.apache.http.protocol.HttpContext;

public interface HttpConstant {
	public static final String DEFAULTUSERAGENT="Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.94 Safari/537.36";
	public interface Method{
		 public static final String GET = "GET";

	        public static final String HEAD = "HEAD";

	        public static final String POST = "POST";

	        public static final String PUT = "PUT";

	        public static final String DELETE = "DELETE";

	        public static final String TRACE = "TRACE";

	        public static final String CONNECT = "CONNECT"; 
	}
	public interface Header {

        public static final String REFERER = "Referer";

        public static final String USER_AGENT = "User-Agent";
    }
	
	public interface ContentType {

        public static final String JSON = "application/json";

        public static final String XML = "text/xml";
        
        public static final String HTML = "text/html";

        public static final String FORM = "application/x-www-form-urlencoded";

        public static final String MULTIPART = "multipart/form-data";
    }

	public interface Enconding {

        public static final String UTF8 = "UTF-8";

        public static final String GBK = "gbk";
    }
}